import request from '@/utils/request'
// 查询在线用户列表
export function listTable(query) {
  return request({
    url: '/edit/list',
    method: 'get',
    params: query
  })
}

export function orderListTable(editId) {
  const data = {
    editId
  }
  return request({
    url: '/edit/orderList',
    method: 'get',
    params: data
  })
}

// 任务状态修改
export function changeUserStatus(editId, status) {
  const data = {
    editId,
    status
  }
  return request({
    url: '/edit/changeStatus',
    method: 'put',
    data: data
  })
}

// 查询表详细信息
export function getInfo(id) {
  return request({
    url: '/edit/' + id,
    method: 'get'
  })
}

// 查询表详细信息
export function getFileList(data) {
  return request({
    url: '/edit/getFileList',
    method: 'get',
    params:data
  })
}

export function deleteFile(id) {
  return request({
    url: '/edit/deleteFile/'+id,
    method: 'delete',
  })
}



export function update(vo) {
  return request({
    url: '/edit/update',
    method: 'put',
    data: vo
  })
}